﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CubicFWNet.Data.ViewModal
{
    public class ArapView
    {
        public System.Guid OrderId { get; set; }
        public System.DateTime CreateTime { get; set; }
        public Nullable<System.DateTime> CreateTimeIsNull { get; set; }
        public System.DateTime ApplyTime { get; set; }
        public string OrderNumber { get; set; }
        public string CustomerName { get; set; }
        public int Type { get; set; }
        public int Status { get; set; }
        public Guid Id { get; set; }

        public Guid PurchaseComposeId { get; set; }
        public string ProductName { get; set; }
        public string FinanceNumber { get; set; }
        /// <summary>
        /// 应收（付）数量
        /// </summary>
        public decimal ShouldAmount { get; set; }
        /// <summary>
        /// 实际收（付）数量
        /// </summary>
        public decimal ActualAmount { get; set; }
        /// <summary>
        /// 成本价
        /// </summary>
        public decimal CostPrice { get; set; }
        /// <summary>
        /// 应收（付）金额
        /// </summary>
        public decimal ShouldMoney { get; set; }
        /// <summary>
        /// 实际收（付）金额
        /// </summary>
        public decimal ActualMoney { get; set; }
        /// <summary>
        /// 应付：累计金额
        /// </summary>
        public decimal TotalMoney { get; set; }
        /// <summary>
        /// 0：开发票  1：不开
        /// </summary>
        public int InvoiceType { get; set; }

        public int ReconciliationType { get; set; }

        public string ReconciliationTypeStr
        {
            get
            {
                if (ReconciliationType == 0)
                {
                    return "预付";
                }
                else
                {
                    return "月结";
                }
            }
        }
    }
}
